import pytesseract
from PIL import Image
pytesseract.pytesseract.tesseract_cmd = r'D:\program\tesseract'

def run():
    image = Image.open("11.jpg")
    code = pytesseract.image_to_string(image)
    # text = pytesseract.image_to_string(image, lang='chi_sim')
    print(code)

if __name__ == '__main__':
    run()